package com.jic.point.mapper;
import com.jic.point.model.entity.ConfSupplierLog;
import com.jic.point.model.entity.SettSupplierRule;
import com.jic.point.rest.request.SignData;

import java.util.List;
public interface ConfSupplierLogMapper {
	/**
	 * CONF_SUPPLIER_LOG插入数据
	 * @param confSupplierLog 入参实体类
	 */
	int insert (ConfSupplierLog confSupplierLog);

	/**
	 * CONF_SUPPLIER_LOG插入数据
	 * @param confSupplierLog 入参实体类
	 */
	int insertSelective (ConfSupplierLog confSupplierLog);

	/**
	 * CONF_SUPPLIER_LOG根据表对象数据修改数据
	 * @param confSupplierLog 入参实体类
	 */
	int updateByPrimaryKey (ConfSupplierLog confSupplierLog);

	/**
	 * CONF_SUPPLIER_LOG根据表对象数据修改数据
	 * @param confSupplierLog 入参实体类
	 */
	int updateByPrimaryKeySelective (ConfSupplierLog confSupplierLog);

	/**
	 * CONF_SUPPLIER_LOG根据id删除数据
	 * @param confSupplierLog 入参实体类
	 */
	int deleteByPrimaryKey (ConfSupplierLog confSupplierLog);

	/**
	 * CONF_SUPPLIER_LOG根据主键查询数据
	 * @param confSupplierLog 入参实体类
	 */
	ConfSupplierLog selectByPrimaryKey (ConfSupplierLog confSupplierLog);

	/**
	 * CONF_SUPPLIER_LOG根据主键查询数据
	 * @param confSupplierLog 入参实体类
	 */
	List<ConfSupplierLog> listPageBySelective (ConfSupplierLog confSupplierLog);

	/**
	 * CONF_SUPPLIER_LOG查询数据
	 * @param confSupplierLog 入参实体类
	 */
	List<ConfSupplierLog>  selectBySelective (ConfSupplierLog confSupplierLog);

	/**
	 * 根据supplierCode查询并统计积分
	 * @param confSupplierLog
	 * @return
	 */
	ConfSupplierLog selectSupplierCodeStatistics(ConfSupplierLog confSupplierLog);

	/**
	 * 根据supplierCode拿到分组之后的信息
	 * @return
	 */
	ConfSupplierLog selectSupplierCode(ConfSupplierLog confSupplierLog);

	/**
	 * 查询积分接口 对外
	 * @param signData
	 * @return
	 */
	List<ConfSupplierLog> selConfSupplierByCode(SignData signData);

	/**
	 * 根据规则的时间范围 统计流水
	 * @param rule
	 * @return
	 */
	List<ConfSupplierLog> queryByBetweenTime(SettSupplierRule rule);

    ConfSupplierLog selectSupplierLedger(ConfSupplierLog confSupplierLog);

}
